﻿@model ZDSoft.UPMS.Model.SystemPart.Role

@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <title>Index</title>
    <link href="../../Scripts/PageCreater/Css/Style.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/PageCreater/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/PageCreater/Scripts/PageCreater.js" type="text/javascript"></script>
     <script src="../../Scripts/jquery.simplemodal.1.4.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var strColumn = "ID,编号,true,text,notnull,"
                        + "Name,角色名,false,text,notnull,"
                        + "IsActive,状态,false,select|激活!true|注销!false,notnull,"
                        + "Opreate,操作,false,null,null";
            var strOpreate = "修改,/Role/Update,true,切换状态,/Role/UpdateIsActive,false";
            CreateIndexPage("/Role/GetPaged", strColumn, strOpreate);
            $("#btn").click(function () {
                var c = $("#Name").val();
                CreateIndexPage("/Role/GetPagedName?rolename=" + c + "", strColumn, strOpreate);
            });
        })
    </script>
</head>
<body>
    <div class="Content">
        <div id="Top">
            <div id="divCreateUrl">
                <p>
                    <a href="Create">新建</a>
                </p>
                 @using (Html.BeginForm())
                { 
                    <p>角色名：@Html.TextBox("Name")&nbsp;&nbsp;<input type="button" value="查找" style="width:70px" id="btn"/></p> 
                }
            </div>
            <div id="divSearch">
            </div>
        </div>
        <div id="tabInfo">
        </div>
        <div id="pageIndex" class="pageIndex" style="margin-top: 5px; width: 95%">
        </div>
    </div>
</body>
</html>
